<?php
include_once(dirname(__FILE__)."/../inc/common.php");

$flowClass = new tally_flow();
// 本月消费
$startTime = strtotime(date("Y-m"));
$endTime = time();
$thisMonthOut = $flowClass->getCountByTimeRangeGroupByType($userId,
    tally_flow::$INOUT_EXPENSE, $startTime, $endTime);

$rs = array(
    "rows" => $thisMonthOut
);

echo json_encode($rs);